import request from '@/utils/request'

export function fetchTables(params) {
  return request({
    url: '/generator/getTablePage',
    method: 'get',
    params
  })
}

export function generatorCode(data) {
  return request({
    url: '/generator/generatorCode',
    method: 'post',
    data,
    responseType: 'blob'
  })
}

export function getParentVersion() {
  return request({
    url: '/generator/parentVersion',
    method: 'get'
  })
}
